package com.example.layui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
//公用的只返回页面的控制层
@Controller
public class PublicController {
    @RequestMapping("/login")
    public String login() {
        return "views/user/login";
    }

    @RequestMapping("user/user/list.html")
    public String userList() {
        return "views/user/user/list";
    }

    @RequestMapping("/user/role")
    public String userRole(){
        return "views/user/role/list";
    }
    @RequestMapping("/user/role/roleform.html")
    public String roleList() {
        return "views/user/role/roleform";
    }

    @RequestMapping("/user/menu")
    public String userMenu(){
        return "views/user/menu/list";
    }

    @RequestMapping("/shop/productlist")
    public String productList(){
        return "/views/product/product";
    }

    @RequestMapping("/bangke/order")
    public String bangkeOrder(){
        return "/views/bangke/order";
    }

    @RequestMapping("/public/groupchat")
    public String groupChat(){
        return "/views/chat/chat";
    }

}
